package com.anche.demo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Classname User
 * @Description TODO
 * @Date 2022/11/27 11:59
 * @Created by Administrator
 */
@Data
@Builder
@AllArgsConstructor
public class User {
    @TableId(value = "id", type = IdType.AUTO)
    private String id; //id
    @ExcelProperty(index = 0)
    @TableField(value = "name")
    private String name;  //姓名
    @ExcelProperty(index = 1)
    @TableField(value = "age")
    private String age;  //年龄

    public User() {

    }
}